<?php
if(isset($_POST['t1'])&&isset($_POST['t1'])&&isset($_POST['t1']))
{
	if($_POST['t1']=='a'&&$_POST['t2']=='a'&&$_POST['t3']=='gladiolus')
	{
		setcookie('SH_name','think');
		setcookie('SH_pass','user');
		setcookie('SH_k_key','glados');
		header('location:sh.php');
	}else{
		header('location:/index.php');
	}
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <p>
    <label>
      <input type="text" name="t1" id="textfield" />
    </label>
  </p>
  <p>
    <label>
      <input type="text" name="t2" id="textfield2" />
    </label>
  </p>
  <p>
    <label>
      <input type="text" name="t3" id="textfield3" />
    </label>
  </p>
  <p>
    <label>
      <input type="submit" name="button" id="button" value="提交" />
    </label>
  </p>
</form>
</body>
</html>